package org.example.casemodule.vo;

import lombok.Data;
import org.example.casemodule.enums.LawyerStatus;
import org.example.casemodule.enums.CertificateAuditStatus;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class LawyerInfoVO {
    /**
     * "lawyerId": 20001,
     *     "name": "张律师",
     *     "status": "ACTIVE",
     *     "contact": {
     *       "phone": "138****8888",
     *       "email": "zhang@lawfirm.com"
     *     },
     *     "practiceAreas": ["LABOR_DISPUTE", "CONTRACT"],
     *     "certificates": [
     *       {
     *         "certId": "CERT001",
     *         "type": "PRACTICE_CERTIFICATE",
     *         "issuer": "北京市司法局",
     *         "issueDate": "2020-05-10",
     *         "expireDate": "2026-05-10",
     *         "status": "VALID"
     *       }
     *     ],
     *     "rating": 4.8
     */
    private Long lawyerId;
    private String name;
    private LawyerStatus status;
    private Contact contact;
    private List<String> practiceAreas;
    private List<Certificate> certificates;
    private BigDecimal rating;

    @Data
    public static class Contact {
        private String phone;
        private String email;
    }

    @Data
    public static class Certificate {
        private Long certId;
        private String type;
        private String issuer;
        private Date issueDate;
        private Date expireDate;
        private CertificateAuditStatus status;
    }

}
